<!-- 流程信息 -->
<template>
  <dt-modal-info ref='info' :title='title' :width='50'>
    <dt-grid ref="table" :onFetch='onFetch' :height='500' />
  </dt-modal-info>
</template>

<script>
  import Column from '../opt/processColumns'
  import companyApi from '@/biz/backStage/companyCard'

  export default {
    components: {},
    data() {
      return {
        info: {},
        title: '流程信息'
      };
    },
    methods: {
      create(data) {
        this.info = {
          ...data
        }
        this.show()
      },
      show() {
        this.$refs.info.show()
        this.init()
      },
      onFetch() {
        return companyApi.getProcess()
      },
      hide() {
        this.$refs.info.hide()
      },
      init() {
        this.$refs.table.init(this, new Column(this))
        this.$refs.table.fetch()
      },
    },
    mounted() {

    },
  }
</script>
<style lang='scss' scoped>

</style>